home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / LGP250S1.ZIP / src / libgplus.5 / libgplus / genclass / makefile.in < prev   
Makefile  |  1993-06-18  |  689b  |  24 lines

  1. # Makefile for g++ library genclass test
  2.  
  3. srcdir = .
  4.  
  5. #### package, host, target, and site dependent Makefile fragments come in here.
  6. ##
  7.  
  8. genclass: $(srcdir)/genclass.sh
  9.     echo "/^PROTODIR=/c\\" > sedscript
  10.     echo "PROTODIR=$$\{PROTODIR-$(gxx_includedir)/gen\}" >> sedscript
  11.     sed <../Makefile -n -e '/VERSION/s/LIBG++_DIST_VERSION *= *\(.*\)/s|<VERSION>|\1|/p' >> sedscript
  12.     sed -f sedscript < $(srcdir)/genclass.sh > genclass.tmp
  13.     chmod 0755 genclass.tmp
  14.     rm -f sedscript
  15.     mv genclass.tmp genclass
  16.  
  17. gentest: $(srcdir)/gentest.sh $(srcdir)/expected.out
  18.     $(srcdir)/gentest.sh > my.out 2>&1
  19.     diff $(srcdir)/expected.out my.out
  20.  
  21. .PHONY: install
  22. install:
  23.     $(INSTALL) genclass $(bindir)/genclass
  24.